<?php

session_start();
if($_SESSION["login"]!="YES"){
	echo "I'm sorry!You haven't log in";
	exit();
}

echo "<br/><a href='logout.php'>Log out</a>"
?>